<% @page_title = "#{Settings.short_title} - Search" %>
<% if @tag.nil? %>
   <div class="post">
      <h3>Nothing with that tag was found.</h3>
      <p><%= params[:term] %></p>
   </div>
<% else %>
<div class="post">
   <h3>Search for: <%= @tag %></h3>
   <% @results.each do |result| %>
      <p><%= link_to result.to_s, :controller => result.class.name.downcase.pluralize, :action => 'show', :id => result %></p>
   <% end %>
</div>
<% end %>

<% content_for :second_column do %>
   <div class="section">
      <p><%= @results.size.to_s %> Results found<p>
   </div>
<% end %>

